window.onload = function() {
	var jiaotong = document.getElementsByClassName("jiaotong");
	var luxian = document.getElementsByClassName("luxian");
	//	console.log(luxian);
	for(var i = 0; i < jiaotong.length; i++) {
		jiaotong[i].index = i;

		jiaotong[i].onclick = function() {
				for(var i = 0; i < jiaotong.length; i++) {
				
					jiaotong[i].style.backgroundColor = "#eee";
					
				}
					for(var j = 0; j < luxian.length; j++) {
						luxian[j].style.display = "none";
						//			console.log(j);
					}
				luxian[this.index].style.display = "block";
					jiaotong[this.index].style.backgroundColor = "#fff";
			}
			

	}
	
	
	
	

}
